package org.opens.hello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    /**
     * 测试dev-tool热加载是否可用
     * @param name 热加载参数
     */
    @RequestMapping(value = "/hi")
    public String sayHello(@RequestParam(value = "name") String name) {
        return "hello1 " + name;
    }

}
